package lab02.test35;

/**
 * Created by Adminitrator on 2017/11/20.
 */
public class Worker extends Employee {
    int days;
    double dailysalary;
    public Worker(String name,int days,double dailysalary) {
        super(name);
        this.dailysalary=dailysalary;
        this.days=days;
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public double computeSalary() {
        return days*dailysalary;
    }
}
